package com.jdk8.demo.method.reference;

public class StudentComparator {
    public  int compareStudentByAge(Student student1,Student student2){
        return student1.getAge() - student2.getAge();
    }
}